import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:liquid_swipe/liquid_swipe.dart';
import 'package:get/get.dart';

import 'assistant_logic.dart';

import '../../shared/shared.dart';
import '../../widgets/widgets.dart';

import 'pages.dart';

class AssistantPage extends GetView<AssistantLogic> {
  AssistantPage({Key? key}) : super(key: key);

  final pages = [
    createPage,
    welcomePage,
  ];

  @override
  Widget build(BuildContext context) {
    return Stack(children: [
      const Background(imageURL: AssetsURL.chatPage, opacity: 0.60),
      _page()
    ]);
  }

  Scaffold _page() {
    return Scaffold(
      backgroundColor: Colors.transparent,
      body: LiquidSwipe(
        pages: pages,
        fullTransitionValue: 200,
        enableLoop: false,
        positionSlideIcon: 0.5,
        waveType: WaveType.liquidReveal,
      ),
      resizeToAvoidBottomInset: false,
    );
  }
}
